package com.adcc.soundalarm.common;

/**
 * Created by ZHANG on 2017/2/9.
 */
public interface Constant {

    public static final String ALARM_UPDATE_CONFIG_PATH= "path" ;

    public static final String ALARM_UPDATE_CONFIG_LOG_URI= "logUri" ;

    public static final String ALARM_UPDATE_CONFIG_USER_URI= "userUri" ;

    public static final String ALARM_UPDATE_CONFIG_STATE_URI= "stateUri" ;

    public static final String ALARM_UPDATE_CONFIG_CONNECT_TIMEOUT= "connectTimeout" ;

    public static final String ALARM_UPDATE_CONFIG_INTERVAL_TIME= "intervalTime" ;

    // AMQS 状态 connected 正常 connecting 异常 error 获取心跳失败
    public static final String AMQS_STATE_CONNECTED = "CONNECTED";
    public static final String AMQS_STATE_CONNECTING = "CONNECTING";

    // MQ 状态 running 正常 stop 异常
    public static final String MQ_STATE_RUNNING = "RUNNING";
    public static final String MQ_STATE_STOP = "STOP";
    public static final String MQ_STATE_OK = "OK";
    public static final String MQ_STATE_WARNING = "WARNING";
    public static final String AMQS_CURRENT_NAME="AMQSCURRENTNAME";

    // GW 状态 connected 正常 connecting 异常 error 获取心跳失败 conferror 配置异常
    public static final String GW_STATE_CONNECTED = "CONNECTED";
    public static final String GW_STATE_CONNECTING = "CONNECTING";
    public static final String GW_STATE_CGWERROR = "CGWERROR";
    public static final String GW_STATE_CONFERROR = "CONFERROR";


    // BGS用户状态 online正常 offline掉线 dead 下线 blocking 用户队列深度超出阀值
    public static final String BGS_STATE_ONLINE = "ONLINE";
    public static final String BGS_STATE_OFFLINE = "OFFLINE";
    public static final String BGS_STATE_BLOCKING = "BLOCKING";

    public static final String AMQS_STATE = "amqsState";
    public static final String GW_STATE = "gwState";
    public static final String MQ_STATE = "mqState";
    public static final String MQ_CONNECT_COUNT = "mqConnectCount";
    public static final String MQ_CONNECT_COUNT_STATE = "mqConnectCountState";
    public static final String BGS_STATE = "bgsState";

    public static final String LOCAL_REQUEST_ERROR = "监控服务请求失败！";

    public static final String EMPTY_VALUE = "";

    public static final String START_ALARM_YES ="T";
    public static final String START_ALARM_NO ="F";

    public static final String DEFAULT_CHARSET = "utf-8";

    // XML 节点名
    public static final String XML_ROOT_NAME = "regular";
    public static final String XML_ELEMENT_AMQS_NAME = "AMQS";
    public static final String XML_ELEMENT_MQ_NAME = "MQ";
    public static final String XML_ELEMENT_GW_NAME = "GW";
    public static final String XML_ELEMENT__USER_AUTO_SYNC = "AUTO-SYNC";
    public static final String XML_ELEMENT_LOG_NAME = "logs";
    public static final String XML_ELEMENT_LOG_CONTENT_NAME = "content";
    public static final String XML_ELEMENT_USER_LIST_NAME = "users";
    public static final String XML_ELEMENT_USER_NAME = "user";
    public static final String XML_ELEMENT_USER_OFFLINE_NAME = "offline";
    public static final String XML_ELEMENT_USER_ONLINE_NAME = "online";
    public static final String XML_ELEMENT_USER_ATTRIBUTE ="name";

    // Yaml 节点名
    public static final String YML_ROOT_NAME ="alarmFactory";

    // udp Transport(0:UNICAST, 1:MULTICAST, 2:BROADCAST)
    public static final String YML_TRANSPORT_UNICAST ="0";
    public static final String YML_TRANSPORT_MULTICAST ="1";
    public static final String YML_TRANSPORT_BROADCAST ="2";
}
